package br.com.insight.consultoria.negocio.fachada.experienciaprofissional;

import java.util.List;

import br.com.insight.consultoria.entity.ExperienciaProfissional;
import br.com.insight.consultoria.entity.Usuario;
import br.com.insight.consultoria.erro.exception.InsightException;
import br.com.insight.consultoria.negocio.bo.interfacebo.ExperienciaProfissionalBO;

public class FachadaExperienciaProfissionalBean implements FachadaExperienciaProfissional{

	private ExperienciaProfissionalBO experienciaProfissionalBO;
	
	
	public void inserir(ExperienciaProfissional profissional)throws InsightException {
		
		getExperienciaProfissionalBO().inserir(profissional);
		
	}
	
	public void alterar(ExperienciaProfissional profissional) throws InsightException{
		
		getExperienciaProfissionalBO().alterar(profissional);
		
	}
	
	public void excluir(ExperienciaProfissional profissional) throws InsightException{
		
		getExperienciaProfissionalBO().excluir(profissional);
		
	}
	
	public ExperienciaProfissional getExperienciaProfissional(Long id)throws InsightException {
		
		return getExperienciaProfissionalBO().getExperienciaProfissional(id);
	
	}
	
	public List<ExperienciaProfissional> pesquisar(Usuario usuario)throws InsightException {

		return getExperienciaProfissionalBO().pesquisar(usuario);
	
	}

	public ExperienciaProfissionalBO getExperienciaProfissionalBO() {
		return experienciaProfissionalBO;
	}

	public void setExperienciaProfissionalBO(
			ExperienciaProfissionalBO experienciaProfissionalBO) {
		this.experienciaProfissionalBO = experienciaProfissionalBO;
	}
	
	
	
}
